// stores/user.js
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    id: null
  }),
  actions: {
    setUser({ id, token }) {
      this.id = id
    },
    logout() {
      this.id = null
    }
  }
})
